package com.wpp;
/*
两种方法
* 1.继承Thread类
* 2.重写run方法
* 3.创建对象，调用start();
*
*
* */


class myThread extends Thread {
    @Override
    public void run() {
        System.out.println("11");
    }
}

public class ThreadTest {
    public static void main(String args[]) {
        myThread myThread = new myThread();
        myThread.start();
    }
}
